Skip to content

Don't use CMAKE_INSTALL_PREFIX in tokenizers-config.cmake #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025

Conversation

swolchok
Copy link
Contributor

@swolchok swolchok commented Jul 17, 2025

Looks like we need to use a new PATH_VAR instead -- tokenizers-config.cmake is evaluated in the context of the build doing find_package(tokenizers), so CMAKE_INSTALL_PREFIX is where that build would install things. Instead, we want to know where tokenizers was installed.

@swolchok swolchok requested a review from larryliu0820 July 17, 2025 21:49
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 17, 2025
Looks like we need to use a new PATH_VAR instead.
@swolchok swolchok force-pushed the more-install-fixes branch from 0c35fc5 to 9327e08 Compare July 17, 2025 22:24
@swolchok swolchok changed the title Fix use of CMAKE_INSTALL_PREFIX in tokenizers-config.cmake Don't use CMAKE_INSTALL_PREFIX in tokenizers-config.cmake Jul 17, 2025
@swolchok swolchok merged commit 93be043 into main Jul 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants